// Attribution:  Some of the content view logic was copied or inspired from the custom window article on Matt Gallagher's excellent Cocoa wih Love blog: http://cocoawithlove.com/2008/12/drawing-custom-window-on-mac-os-x.html

#import <Cocoa/Cocoa.h>
#import "SMRPopoverFrameView.h"


@interface SMRPopoverWindow : NSWindow {
}

@property (nonatomic, assign) NSSize preferredContentSize;
// TODO: MAKE PREFERRED ARROW DIRECTION AN ARRAY INSTEAD OF A SINGLE CHOICE
@property (nonatomic, assign) SMRPopoverArrowDirection preferredArrowDirection;
@property (nonatomic, assign) BOOL shouldBecomeKey;

+(Class)PopoverFrameViewClass;
-(void)presentPopoverFromRect:(NSRect)rect inView:(NSView *)view permittedArrowDirections:(SMRPopoverArrowDirection)arrowDirections animated:(BOOL)animated;
-(void)dismissPopoverAnimated:(BOOL)shouldAnimate;

@end
